Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abacus-aibox-901 fix the asq's pushcopy compatible error #29

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

HuangShiqing
Copy link
Collaborator

PR types

PR changes

Describe

__shared__ uint64_t sm_src_vals_ptr[max_slot_num];
for (int i = cid; i < sm_slot_len; i += ncores) {
GM2SM(src_vals + i, sm_src_vals_ptr + i, sizeof(uint64_t));
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个slot数比较多的话,可以用多core进行并行

lm_src_vals_ptr[0] = sm_src_vals_ptr[i];
break;
}
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个循环看着是所有core都拿到sm_src_vals_ptr[0]?符合预期吗

Copy link
Owner

@jack603047588 jack603047588 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

程序有两个地方需要看下

@HuangShiqing HuangShiqing merged commit 1034434 into jack603047588:paddlebox Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants